package cn.hznc.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import com.gitee.sunchenbin.mybatis.actable.annotation.Table;
import com.gitee.sunchenbin.mybatis.actable.constants.MySqlTypeConstant;
import lombok.Getter;
import lombok.Setter;

import java.math.BigDecimal;

/**
 * @Author：Administrator
 * @Date：2023/6/3 11:34
 */
@Getter
@Setter
@Table(name = "t_tool_life")
@TableName(value = "t_tool_life")
public class ToolLifeEntity{
    /**
     * 主键
     */
    @Column(name = "id",type = MySqlTypeConstant.INT,length = 11,isKey = true,isAutoIncrement = true)
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 零件或总成分类
     */
    @Column(name = "classify", type = MySqlTypeConstant.VARCHAR, length = 200)
    @TableField(value = "classify")
    private String classify;

    /**
     * 零件描述
     */
    @Column(name = "group_idnr", type = MySqlTypeConstant.VARCHAR, length = 200)
    @TableField(value = "group_idnr")
    private String groupIdnr;

    /**
     * 额定寿命
     */
    @Column(name = "life", type = MySqlTypeConstant.VARCHAR)
    @TableField(value = "life")
    private BigDecimal life;

    /**
     * 零件 总成标识位
     */
    @Column(name = "type_flag", type = MySqlTypeConstant.TINYINT)
    @TableField(value = "type_flag")
    private Integer typeFlag;

    /**
     * 零件 总成分类
     */
    @Column(name = "type", type = MySqlTypeConstant.VARCHAR , length = 150)
    @TableField(value = "type")
    private String type;



}
